CLASSPATH = src

JFLAGS = -classpath $(CLASSPATH)
JCFLAGS = -d bin -Xlint
JRFLAGS =
JAVAC = javac $(JFLAGS) $(JCFLAGS)
JAVA = java $(JFLAGS) $(JRFLAGS)

JAVASRC = $(shell ls src/*.java)
CLASSES = $(JAVASRC:.java=.class)

.SUFFIXES : .java .class

.java.class :
	$(JAVAC) $<

all : compile

mkbindir:
	mkdir -p bin

compile : mkbindir $(CLASSES)

clean :
	rm -f $(CLASSES:.class='$$'*.class) $(CLASSES)
